<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html">
    
    <ui:composition template="template.xhtml">
        <ui:define name="body">
            
            <h:form id="login">
           
                <br/><br/><br/>
            <h:outputText value="Login" />
            <br/><br/>
            <div align="center">
            <h:panelGrid  columns="2" >
                <h:outputLabel for="nome" value="Nome:" />
                <h:inputText id="nome" value="#{participante.nome}" />
                <h:outputLabel for="senha" value="Senha:" />
                <h:inputSecret id="senha" value="#{participante.senha}" />
            </h:panelGrid>
                </div>
            <h:messages style="color: red"/>
            <br/>
                <h:commandButton action="#{participante.autentica}" value="Autenticar" />
                 <br/><br/>
            <br/>
            <h:outputText value="Se ainda nao e cadastrado, "/>
            <h:commandLink action="cadastrar" value="Clique aqui!"/>
           
            </h:form>
        
        </ui:define>
   </ui:composition>
</html>

